package com.haoshuang.zhouzhoubang.model.bean


import androidx.annotation.Keep

/**
 * 分享服务套餐详情
 * @property attr Attr
 * @property detail Detail
 * @property guarantee_content List<GuaranteeContent>
 * @property guarantee_title List<String>
 * @property prepare String
 * @property qrcode_url String
 * @constructor
 */
@Keep
data class SpreadMealDetail(
    val attr: Attr,
    val detail: Detail,
    val guarantee_content: ArrayList<GuaranteeContent>,
    val guarantee_title: List<String>,
    val prepare: String,
    val qrcode_url: String
) {
    
//    companion object {
//
//        fun toDetailFBean(spreadMealDetail: SpreadMealDetail): DetailFBean {
//
//
//
//            return DetailFBean(
//                detail = DetailFBean.Detail(
//                    description = spreadMealDetail.detail.description,
//                    id = spreadMealDetail.detail.id,
//                    make_money = spreadMealDetail.detail.make_money,
//                    price = spreadMealDetail.detail.price,
//                    is_seckill = 0,
//                    stop_time = "",
//                    attr = AttrBean(
//                        name = spreadMealDetail.attr.name,
//                        data = spreadMealDetail.attr.data,
//                        money = "",
//                        service_id = ""
//                    ),
//                    pro_descript = "",
//                    stock = "",
//                    ot_price = "",
//                    share_image = "",
//                    questions = listOf(),
//                    service_content = listOf(),
//                    slider_image = listOf(),
//                    store_name = ""
//                ),
//                guarantee_content =,
//                guarantee_title =,
//                mater_list = listOf(),
//                prepare = "",
//                service_content = "",
//                description = "",
//                questions = "",
//                qrcode_url = ""
//            )
//        }
//    }
    
    @Keep
    data class Attr(
        val data: List<Data>,
        val name: String
    ) {
        @Keep
        data class Data(
            val cost: String,
            val make_money: String,
            val image: String,
            val num: String,
            val price: String,
            val suk: String,
            val unique: Int,
            var isCheck: Int
        )
    }

    @Keep
    data class Detail(
        val desc: String,
        val description: List<String>,
        val distributor_common_rate: Int,
        val distributor_vip_rate: Int,
        val id: Int,
        val image: String,
        val make_money: String,
        val price: String,
        val base_price: String,
        val questions: List<String>,
        val rate: Double,
        val scene: String,
        val service_content: List<String>,
        val service_prepare: String,
        val share_image: String,
        val slider_image: List<String>,
        val store_name: String,
        val type: Int
    )

    @Keep
    data class GuaranteeContent(
        val content: String,
        val title: String
    )
}